<?php

require 'header.php';
echo $_GET['message'];;
if (!isset($_SESSION['clearance']) || $_GET['message'] == "")
	exit ;
require 'DAO.php';
echo '2';
$con = new connection();
$post = $con -> postAnnouncement($_SESSION['name'], $_GET['title'], $_GET['message']);

echo "succes. window word gesloten. <script>window.close();</script>";
?>